<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        
    </style>
</head>
<body>
    
</body>
<script>
    var str = "hjsgdvh1123yf435uir2tgut847r76f";
    console.log(str);

    // 转义符
    console.log(str.replace(/\d/, "啊"));

    // 修饰符
    console.log(str.replace(/\d/g, "啊"));

    // 量词
    console.log(str.replace(/\d+/g, "啊"));
    console.log(str.replace(/\d{2}/g, "啊"));


</script>
</html>